# # # import random
# # #
# # # result = 0
# # # for i in range(1, 101):
# # #     result += i
# # #     i += 1
# # # print(result)
# # # for i in range(1, 10):
# # #     for n in range(1, 10):
# # #         print(i * n ,end='\t')
# # #     print()
# # # for i in range(1, 10):
# # #     for n in range(1, i +1):
# # #         print('%sX%s=%s' % (i,n,i * n) ,end='\t')
# # # #     print()
# # #
# # # fib = [0, 1,2]
# # # for i in range(10):
# # #     fib.append(fib[-2] + fib[-1])
# # # print(fib)
# # >>> [5 + 5 for i in range(10)]
# # [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
# # >>> [5 + i for i in range(10)]
# # [5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
# # >>> [5 + i for i in range if i % 2 == 0]
# # Traceback (most recent call last):
# #   File "<stdin>", line 1, in <module>
# # TypeError: 'type' object is not iterable
# # >>> [5 + i for i in range(10) if i % 2 == 0]
# # [5, 7, 9, 11, 13]   #列表解析
# # 打开 读写 关闭
# # open（）
# # r读，文件不存在则报错，只读不解
# # 写为，不存在则创建，只写不读
# # f = open('/tmp/mima')
# # for line in f:
# #     print(line,end='')
# # f.close()
# # f = open('/tmp/mima')
# # for line in f:
# #     print(line,end='')
# # f.close()
# # f = open('/tmp/mima')
# # for line in f:
# #     print(line,end='')
# # f.close()
# # import shutil
# # shutil.copy('/etc/shadow','/tmp/qwe')
# # f = open('/tmp/tupian.jpg','rb')
# # data = f.read(10)
# # f.close()
# # print(data)
# def func1(x):
#     return True if x % 2 == 1 else False
#     False
#
# from random import randint
# if __name__ == '__main__':
#     nums = [randint(1, 100) for i in range(10)]
#     print(nums)
#     result1 = filter(func1, nums)
#     print(list(result1))
#     result2 = filter(lambda x: True if x % 2 == 1 else False,nums)
#     print(list(result2))
#
#
#
#
# #
import hashlib
m = hashlib.md5()
def copy_updata(fname):

    with open(fname) as f:
        data = f.read(4096)
        m.update(data)

def show_menu():
    while 1:
        copy_updata()

if __name__ == '__main__':
    show_menu()







